from motor.motor_asyncio import AsyncIOMotorClient
from pymongo import MongoClient

from config import settings


class MongoClients:
    _async_cli = AsyncIOMotorClient(**settings.mongo)
    _sync_cli = MongoClient(**settings.mongo)
    async_db = _async_cli[settings.app_name]
    sync_db = _sync_cli[settings.app_name]
